{{useCss "/app-pages/css/admin/news.scss"}}
<div class="news">
	<div class="title">
		标题：
		<input type="text" bind-input="{{'$Cache.admin.news.new.title'}}" bind-value="{{$Cache.admin.news.new.title}}" placeholder="请输入资讯标题" />
	</div>
	<div class="imagebox">
		资讯封面(点击图片可删除)：<button disabled="{{$Cache.admin.news.uploading}}" onclick="javescript:document.getElementById('_upload_news_preview').click()">{{$Cache.admin.news.uploading?"正在上传":"请选择资讯封面"}}</button>
		<input type="file" accept="image/*" placeholder="请选择资讯封面" event-change="{{'$Event.admin.news.preview_url'}}" id="_upload_news_preview" style="display: none" />
		<div class="img">
			{{#if $Cache.admin.news.new.preview_url}}
			<img src="{{$Cache.admin.news.new.preview_url||'/images/public/post_preview.png'}}?imageView2/1/h/200" event-click="{{'$Event.admin.news.delete_news_preview'}}" />
			{{/if}}
		</div>
	</div>
	<div class="content">
		<textarea id="newsedit" name="newsedit" class="edit"></textarea>
	</div>
	<button event-click="{{'$Evemt.admin.news.submit_news'}}">提交</button>
</div>
<div class="cover {{$Cache.admin.news.detail_loading&&'focus'}}">
	<div class="text">正在加载...</div>
</div>